﻿using DataServer.ApplicationLib.Entities;
using DataServer.CommonLib.Models.DataConfig;
using Swimj.Core.DependencyInjection;

namespace DataServer.ApplicationLib.Repositories
{
    public interface IConfigFieldRepository : IScopedDependency
    {
        Task<Tuple<IEnumerable<ConfigFieldEntity>, int>> QueryFieldsByPageConfigAsync(string configCode, ConfigFieldSearchRequestDto model);

        Task<IEnumerable<ConfigFieldEntity>> QueryFieldsByConfigAsync(string configCode, ConfigFieldSearchRequestDto model);
        
        Task<ConfigFieldEntity> GetAsync(Guid id);

        Task InsertAsync(ConfigFieldEntity configFieldEntity);

        Task UpdateAsync(ConfigFieldEntity configFieldEntity);
    }
}
